import request from '@/utils/request'
import { microservices } from '@/utils'

// 批量新增
export function putBatchSaveApi (data) {
  return request({
    url: `${microservices.pcpesIs}/BsFormula/batchSave`,
    method: 'put',
    data
  })
}
// 新增
export function putBsFormulaApi (data) {
  return request({
    url: `${microservices.pcpesIs}/BsFormula`,
    method: 'put',
    data
  })
}
// 修改
export function postBsFormulaApi (data) {
  return request({
    url: `${microservices.pcpesIs}/BsFormula`,
    method: 'post',
    data
  })
}
// 删除
export function deleteBsFormulaByIds (ids) {
  return request({
    url: `${microservices.pcpesIs}/BsFormula/${ids}`,
    method: 'delete'
  })
}
// 列表信息
export function BsFormulaApi (params) {
  return request({
    url: `${microservices.pcpesIs}/BsFormula`,
    params
  })
}
// 查询-根据ID查询（单条）
export function BsFormulaByIdApi (id) {
  return request({
    url: `${microservices.pcpesIs}/BsFormula/${id}`
  })
}


